package com.open.api.wechat.app.request;

import com.open.api.wechat.app.request.condition.WeChatGetQRCodeCondition;
import com.open.api.wechat.common.HttpMethod;
import com.open.api.wechat.common.WeChatCommonRequest;
import com.open.api.wechat.common.WeChatCommonResponse;
import com.open.api.wechat.constants.WeChatAppUrlConstants;
import lombok.Data;

/**
 * @author : zhaoxuan
 * @date : 2021/7/1 16:12
 * @description : WeChatCreateQRCodeRequest
 * @version: 1.0
 */
@Data
public class WeChatGetQRCodeRequest extends WeChatCommonRequest<WeChatCommonResponse> {

    private WeChatGetQRCodeCondition condition;

    @Override
    public Object getCondition() {
        return condition;
    }

    @Override
    public HttpMethod getMethod() {
        return HttpMethod.POST;
    }

    @Override
    public String getDefaultUrl() {
        return WeChatAppUrlConstants.APP_GET_QR_CODE;
    }

    @Override
    public Class<WeChatCommonResponse> getResponse() {
        return WeChatCommonResponse.class;
    }
}
